package com.example.server.controller;

import com.example.server.service.TestService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @ProjectName: mcroservices
 * @Description: ${description}
 * @Date: 2021/6/19 15:29
 * @Version: 1.0
 */
@RestController
@RequestMapping("/test")
public class TestController {
  @Autowired
  private TestService testService;

  @RequestMapping("/get")
  public  String getName(String name){
    return testService.test(name);
  }

}
